package com.example.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springboot.entity.Restaurant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RestaurantMapper extends BaseMapper<Restaurant> {
    
    @Select("SELECT * FROM restaurant WHERE destination_id = #{destinationId}")
    List<Restaurant> selectByDestinationId(@Param("destinationId") Long destinationId);
}